package pro.spring.controller.frontController;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import pro.spring.model.Information;
import pro.spring.vo.PaginationVo;

@Controller("ThemBankuaiController")
@RequestMapping("bankuai")
public class ThemBankuaiController  extends BaseController {
	private String local = "page/front/come/";
	private String xie="page/front/bianji";
			
	
	@RequestMapping("thembankuai.html")
	public String oneInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(104,0,20);
		
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		};
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"thembankuai";
	}
	
	@RequestMapping("jinrong.html")
	public String twoInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(105,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"jinrong";
	}
	
	@RequestMapping("xinxijishu.html")
	public String threeInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(106,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"xinxijishu";
	}
	
	@RequestMapping("wenxue.html")
	public String fourInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(107,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"wenxue";
	}
	
	@RequestMapping("lishi.html")
	public String fiveInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(108,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"lishi";
	}
	
	@RequestMapping("zhengzhi.html")
	public String sixInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(109,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"zhengzhi";
	}
	
	@RequestMapping("zhexue.html")
	public String sevenInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(110,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"zhexue";
	}
	
	@RequestMapping("yixue.html")
	public String eightInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(111,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"yixue";
	}
	
	@RequestMapping("meishi.html")
	public String nineInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(112,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"meishi";
	}
	
	@RequestMapping("tianwen.html")
	public String tenInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(113,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"tianwen";
	}
	
	@RequestMapping("yishu.html")
	public String shiyiInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(114,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"yishu";
	}
	
	@RequestMapping("qita.html")
	public String shierInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(115,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"qita";
	}
	
	@RequestMapping("beifen.html")
	public String shisanInfo(ModelMap map){
		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
		PaginationVo<Information> allart=informationService.selectArtListPageByType(115,0,20);
		for(Information information:allart.getList()){
			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
		}
		;
		map.put("allart",allart);
		map.put("all",allvedio);
		return local+"beifen";
	}
	
//	@RequestMapping("bianji.html")
//	public String shisiInfo(ModelMap map){
//		PaginationVo<Information> allvedio=youkuService.getPaginationInfo(1,12);
//		PaginationVo<Information> allart=informationService.selectArtListPageByType(115,0,20);
//		for(Information information:allart.getList()){
//			information.setInContent(udiscusserService.getNOHTML(information.getInContent()));
//		}
//		;
//		map.put("allart",allart);
//		map.put("all",allvedio);
//		return xie+"bianji";
//	}
}
